﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using cludg.Web.Core.Validation;
using cludg.Web.Core.ViewModels;

namespace cludg.Web.ViewModels
{
	public class LoginModel : BaseModel
	{
		[Required(ErrorMessage = ValidationConst.RequiredMessage)]
		[StringLength(100, ErrorMessage = ValidationConst.StringLengthMaxInvalidMessage)]
		[DisplayName("Имя пользователя или email")]
		public string Login { get; set; }

		[Required(ErrorMessage = ValidationConst.RequiredMessage)]
		[DisplayName("Пароль")]
		public string Password { get; set; }

		[DisplayName("Запомнить")]
		public bool Remember { get; set; }
	}
}